home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: June 2000
- // Author: alipka
- //
- // Description:
- // Option tool property window for Artisan tools
- //
- //
- // Procedure Name:
- // artSelectValues
- //
- // Description:
- // Initialize the option values.
- //
- // Input Arguments:
- //
- // Return Value:
- // None.
- //
-
- global string $artSkinCurrentInfluence = "";
-
- global proc artSkinPaintValues(
- string $artCommand,
- string $currTool
- )
- //
- // Paint Skin Weights tool values.
- //
- {
- // RSE Moved the call to artSkinProperties as fix for bug 157707 and 187493
- // Moved the callback setting up code to artSkinCallback.mel for skinPaintSortRadio
-
- // Fill in the popMenu and set the current selection.
- // artAttrSkinJointMenu( "skinClusterInflList", $artCommand );
-
- radioButtonGrp -e -sl `optionVar -q sortSkinPaintList` skinPaintSortRadio;
-
- // Common Attribute Paint UI.
- artAttrCommonValues( $artCommand, $currTool );
- }
-
- // =======================================================
- // Main callback procedure for Paint Selecion tool.
- // =======================================================
- global proc artAttrSkinValues(
- string $toolName
- )
- {
- source "artisanCallback.mel";
- source "artisanValues.mel";
-
- source "artAttrValues.mel";
-
- string $artCommand = "artAttrCtx";
- string $currContext = `currentCtx`;
- string $currTool = `contextInfo -c $currContext`;
-
- // Provide a different icon for different attribute tools.
- string $icon = "paintSkinWeights.xpm";
- string $helpTag = "PaintSkinWeightsTool";
-
- string $parent = (`toolPropertyWindow -q -location` + "|artAttrSkin");
- setParent $parent;
-
- toolPropertySetCommon $toolName $icon $helpTag;
-
- // Brush frameLayout values.
- artisanBrushValues( $artCommand, $currTool );
-
- // Skin Paint Weights frameLayout values.
- artSkinPaintValues( $artCommand, $currTool );
-
- // Stroke frameLayout values.
- artisanStrokeValues( $artCommand, $currTool );
-
- // Stylus Pressure frameLayout values.
- artisanPressureValues( $artCommand, $currTool );
-
- // Display frameLayout values.
- artisanDisplayValues( $artCommand, $currTool );
-
- toolPropertySelect artAttrSkin;
- }
-